package com.mall.user.domain.model;

public record StoreSeoKeywords(String keywords) {
    public StoreSeoKeywords {
        //店铺seo关键字长度必须在0到50个字符之间
        if (keywords.length() > 50) {
            throw new IllegalArgumentException("店铺seo关键字长度必须在0到50个字符之间");
        }
    }

    public static StoreSeoKeywords of(String keywords) {
        return new StoreSeoKeywords(keywords);
    }
}
